package br.urca.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "DiscGrade")
public class DisciplinaGrade implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@EmbeddedId
	private DisciplinaGradePK id;
	
	@Column(name = "semes")
	private String semestre;
	
	@Column(name = "credt")
	private Integer credt;
	
	@Column(name = "credp")
	private Integer credp;
	
	@Column(name = "crede")
	private Integer crede;
	
	@Deprecated public DisciplinaGrade() { }

	public DisciplinaGrade(DisciplinaGradePK id, String semestre,
			Integer credt, Integer credp, Integer crede) {
		super();
		this.id = id;
		this.semestre = semestre;
		this.credt = credt;
		this.credp = credp;
		this.crede = crede;
	}

	public DisciplinaGradePK getId() {
		return id;
	}

	public void setId(DisciplinaGradePK id) {
		this.id = id;
	}

	public String getSemestre() {
		return semestre;
	}

	public void setSemestre(String semestre) {
		this.semestre = semestre;
	}

	public Integer getCredt() {
		return credt;
	}

	public void setCredt(Integer credt) {
		this.credt = credt;
	}

	public Integer getCredp() {
		return credp;
	}

	public void setCredp(Integer credp) {
		this.credp = credp;
	}

	public Integer getCrede() {
		return crede;
	}

	public void setCrede(Integer crede) {
		this.crede = crede;
	}
	
}
